﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MemberUser/MemberMaster.Master"
    AutoEventWireup="true" CodeBehind="ViewOrder.aspx.cs" Inherits="ZLCMS.Web.MemberUser.ViewOrder" %>
    
<%@ Import Namespace="ZLCMS.Business.Util" %>

<%@ MasterType VirtualPath="~/MemberUser/MemberMaster.Master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <!--wrapper start-->
    <div id="main">
        <div class="regist_top">
            <!--logo start-->
            <div class="regist_logo">
                <a href="#">
                    <img src="/MemberUser/images/logo.png" width="147" height="69" /></a></div>
            <!--logo end-->
            <div class="regist_yous">
                <img src="/MemberUser/images/order_submit.jpg" width="486" height="48" /></div>
            <div class="clear">
            </div>
        </div>
        <div class="order_submit">
            <h5>
                核对订单信息</h5>
            <div class="submit_box">
                <div class="item">
                    <div class="title">
                        <div style="float: left; line-height: normal">
                            收货人信息：<label for="addr58"><%= _order.ReceiverName %>,<%= _order.ReceiverAddress %> ,<%= _order.ReceiverPhone %>,</label></div>
                        <div id="addrtip" class="checktip">
                        </div>
                    </div>
                   
                </div>
                <div class="item">
                    <div class="title">
                        <div style="float: left;">
                            送货方式：<label      for="ship3"><%= shippingInfo.ShippingName %></label></div>
                        <div id="gendertip" class="checktip">
                        </div>
                    </div>
                   
                </div>
                <div class="item">
                    <div class="title">
                        <div style="float: left;">
                            支付方式：<label     for="ship3"><%= paymentInfo.PaymentName %></label></div>
                        <div id="paytip" class="checktip">
                        </div>
                    </div>
                    
                </div>
                <div class="item">
                    <div class="title">
                        备注</div>
                    <p>
                        <textarea name="" cols="" rows=""><%= _order.Remark %></textarea>
                    </p>
                </div>
            </div>
        </div>
        <div class="cart_box">
            <ul class="title">
                <li class="pro">产品</li>
                <li>数量</li>
                <li>单价</li>
                <li>小计</li>
                <div class="clear">
                </div>
            </ul>
            <asp:Repeater ID="rptOrderPro" runat="server">
            <ItemTemplate>
             <ul class="pro_detail">
                <li class="pro"><a href='/product/ProductDetail.aspx?no=<%# Eval("ProductNo") %>'>
                    <img src='<%# FileKit.FirstImgPathThumb(Eval("ThumbnailImage") as string) %>' width="59" height="59" /></a>
                    <div class="pro_text">
                      <%# Eval("ProductName") %><%# GetSkuItemHtml(Eval("SkuProductNo").ToString())%><br /><%# Eval("Remark") == null ? "" : "(" + printConfigStr(Eval("Remark") as string )+ ")"%></div>
                </li>
                <li class="numn"><%# Eval("Quantity")%><div class="clear">
                </div>
                </li>
                <li>￥<%# Eval("SalePrice")%></li>
                <li>￥<%# Eval("TotalPrice")%></li>
                <div class="clear">
                </div>
            </ul>
            </ItemTemplate>
            </asp:Repeater>
           
        </div>
        <div class="jiesuanlan">
            <div class="p_left">
                <a href="/MemberUser/MyOrder.aspx" class="button">返回我的订单</a>
            </div>
            <div class="p_right">
                共<span><%= _order.Quantity %></span>件商品&nbsp;&nbsp;应付总额<label></label>：<strong>￥<%= _order.TotalPrice %></strong>（运费：￥<%=shippingInfo.Expression %>）&nbsp;&nbsp;
                <%if (_order.PayStatus != "1"&&_order.PaymentType!="2")
                  { %>
                <input type="button"  onclick="PayOrder(this)" orderno='<%= _order.OrderNo %>'  tradeno='<%= _order.TradeNo %>'  value="去结算"/>&nbsp;&nbsp;
                <%}%>
            </div>
            <div class="clear">
            </div>
        </div>
    </div>
    <script type="text/javascript">
        function PayOrder(ct) {
            location.href='/paychannal/jump2paypage.aspx?o=<%=  _order.OrderNo %>';

//            $(ct).ExecuteCommand({
//                successCallBack: function (result) {
//                    alert("支付成功!");
//                    location.href = '/MemberUser/MyOrder.aspx?orderno=<%=Request["orderno"] %>';
//                },
//                errorCallback: function (errorCode, msg) {
//                    alert(msg);
//                }
//            }, 'PayOrder', { OrderNo: $(ct).attr("orderno"), TradeNo: $(ct).attr("tradeno"), UserCode: '<%= CurrentMemberAccount %>' });
//        }
      </script>
    <!--wrapper end-->

</asp:Content>
